projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a40555
)
window: Fix up the buildable implementation
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Apr 2019 19:37:41 +0000
(19:37 +0000)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Apr 2019 22:20:55 +0000
(22:20 +0000)
We were assuming that the parent class has a custom
set_property, which may not be the case. Be more
careful.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index fd12df32661e2b9744b034b26bb1157895001619..67dd10dc6fc764ca5cade5e1b9123d3c528b07c5 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-2134,8
+2134,10
@@
gtk_window_buildable_set_buildable_property (GtkBuildable *buildable,
if (strcmp (name, "visible") == 0 && g_value_get_boolean (value))
priv->builder_visible = TRUE;
- else
+ else
if (parent_buildable_iface->set_buildable_property)
parent_buildable_iface->set_buildable_property (buildable, builder, name, value);
+ else
+ g_object_set_property (G_OBJECT (buildable), name, value);
}
typedef struct {